package com.cater.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cater.query.CommonQuery;
import com.cater.sys.entity.CompanyOrganize;

/**
 * 描述：组织架构DTO
 * 
 * @author yong
 * @date 2019/03/07
 */
public interface CompanyOrganizeDao extends BaseDao<CompanyOrganize, String, CommonQuery> {
	/**
	 * 根据公司ID获取组织
	 * 
	 * @param query
	 * @return
	 */
	List<CompanyOrganize> getListBy(@Param("qo") CommonQuery query);

	/**
	 * 查询父级
	 * 
	 * @param pid
	 * @return
	 */
	CompanyOrganize getByPid(@Param("qo") CommonQuery query);

}